﻿@using System.Data
@{
    ViewBag.Title = "商品分类";
    Layout = "~/Areas/Mall/Views/Shared/MallLayout.cshtml";
    var table = ViewData["data"] as DataTable;
}

@{
    foreach (DataRow row in table.Rows)
    {
        
        <a class="gsortl" href="@Url.Action("Goods",new {id=row["Id"]})">
            <label class="sortname">@row["Name"]</label>
            <label class="sortg">>></label>
        </a>
    }
}
<div style="width: 100%;height: 100px;"></div>
<script>
    $(".gsortl:eq(2)").attr("href", "/mall/food/index");
</script>